
 import Perf from 'react-addons-perf';
window.Perf = Perf
require('es6-promise').polyfill();
import 'babel-polyfill'
import utils from './utils'
import React,{Component,}  from 'react'
import PropTypes from 'prop-types'
import { render } from 'react-dom'
import {HashRouter as Router, Route,Link} from 'react-router-dom'
import { ConnectedRouter, routerReducer, routerMiddleware, push } from 'react-router-redux'
import { Provider } from 'react-redux'
import configureStore from './store/configureStore'
import routes from './routes'
import * as Actions from './actions/user'
import './allCss'
import 'mescroll.js/mescroll.min.css'
const store = configureStore()

class Root extends Component {
  static propTypes = {
    store: PropTypes.object.isRequired,
  }
  
  componentDidMount(){
    
  }

  render(){
    const { store }  = this.props
    return (
      <Router>
        <Provider store={store}>
          {routes}   
        </Provider>
      </Router>
    )
  }
}
render(
  <Root store={store} />,
  document.getElementById('_root')
)


